/* FoodPage.css */
.food-page-container {
    min-height: 100%;
  }
  
  /* 搜索栏样式 */
  .search-bar {
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* 移动端分类选择器 */
  .mobile-categories {
    display: block;
    padding: 8px 0;
    background: var(--ion-color-light);
  }
  
  @media (min-width: 768px) {
    .mobile-categories {
      display: none;
    }
  }
  
  .segment-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
  }
  
  .segment-icon {
    font-size: 20px;
  }
  
  .segment-name {
    font-size: 12px;
    white-space: nowrap;
  }
  
  /* 桌面端布局 */
  .desktop-layout {
    height: 100%;
  }
  
  .desktop-categories {
    border-right: 1px solid var(--ion-color-light-shade);
    background: var(--ion-color-light);
    height: 100%;
    padding: 0;
  }
  
  @media (max-width: 767px) {
    .desktop-categories {
      display: none;
    }
  }
  
  .categories-sidebar {
    padding: 16px;
    height: 100%;
    overflow-y: auto;
  }
  
  .categories-sidebar h3 {
    margin: 0 0 16px 0;
    color: var(--ion-color-dark);
    font-weight: 600;
  }
  
  .category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }
  
  .category-item.active {
    background: var(--ion-color-primary);
    color: white;
    border-color: var(--ion-color-primary-shade);
  }
  
  .category-item:not(.active):hover {
    background: var(--ion-color-light-shade);
    transform: translateY(-2px);
  }
  
  .category-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .category-icon {
    font-size: 20px;
  }
  
  .category-name {
    font-weight: 500;
  }
  
  .category-count {
    font-size: 12px;
  }
  
  /* 视图控制 */
  .view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ion-color-light-shade);
  }
  
  .results-count {
    color: var(--ion-color-medium);
    font-weight: 500;
  }
  
  .view-toggle {
    display: flex;
    gap: 8px;
  }
  
  /* 美食容器 */
  .foods-container {
    padding: 8px 0;
  }
  
  /* 网格视图 */
  .grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 8px;
  }
  
  /* 列表视图 */
  .list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px;
  }
  
  .list-view .food-card {
    display: flex;
    flex-direction: row;
    max-height: 200px;
  }
  
  .list-view .food-image-container {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
  }
  
  .list-view .food-card-header {
    flex: 1;
  }
  
  /* 美食卡片样式 */
  .food-card {
    margin: 0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
  }
  
  .food-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }
  
  .food-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
  }
  
  .food-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .food-card:hover .food-image {
    transform: scale(1.05);
  }
  
  .food-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, 0.1) 100%
    );
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
  }
  
  .favorite-btn {
    --padding-start: 8px;
    --padding-end: 8px;
    --background: rgba(255, 255, 255, 0.2);
    --background-hover: rgba(255, 255, 255, 0.3);
    --border-radius: 50%;
    width: 40px;
    height: 40px;
  }
  
  .featured-chip {
    margin: 0;
    font-size: 12px;
  }
  
  /* 美食头部 */
  .food-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
  }
  
  .food-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
  }
  
  .veg-badge {
    font-size: 10px;
    flex-shrink: 0;
  }
  
  .food-description {
    font-size: 14px;
    color: var(--ion-color-medium);
    line-height: 1.4;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* 美食标签 */
  .food-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
  }
  
  /* 美食信息 */
  .food-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .food-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--ion-color-primary);
  }
  
  .food-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  
  .food-rating,
  .food-time,
  .food-calories {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  /* 添加到购物车按钮 */
  .add-to-cart-btn {
    --border-radius: 12px;
    margin-top: 8px;
  }
  
  /* 加载状态 */
  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
  }
  
  .loading-container p {
    margin-top: 16px;
    color: var(--ion-color-medium);
  }
  
  /* 空状态 */
  .empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--ion-color-medium);
  }
  
  .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
  }
  
  .empty-state h3 {
    margin-bottom: 8px;
    color: var(--ion-color-dark);
    font-size: 20px;
  }
  
  .empty-state p {
    margin-bottom: 24px;
    font-size: 16px;
  }
  
  /* 移动端优化 */
  @media (max-width: 767px) {
    .view-controls {
      padding: 12px 16px;
      margin-bottom: 8px;
    }
    
    .grid-view {
      grid-template-columns: 1fr;
      gap: 12px;
      padding: 8px 16px;
    }
    
    .list-view {
      padding: 8px 16px;
    }
    
    .list-view .food-card {
      flex-direction: column;
      max-height: none;
    }
    
    .list-view .food-image-container {
      width: 100%;
      height: 200px;
    }
    
    .food-image-container {
      height: 180px;
    }
    
    .food-price {
      font-size: 20px;
    }
    
    .food-stats {
      justify-content: flex-start;
    }
  }
  
  /* 平板端优化 */
  @media (min-width: 768px) and (max-width: 1023px) {
    .grid-view {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* 桌面端大屏幕优化 */
  @media (min-width: 1024px) {
    .grid-view {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (min-width: 1440px) {
    .grid-view {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  /* 深色模式支持 */
  @media (prefers-color-scheme: dark) {
    .desktop-categories {
      background: var(--ion-color-dark);
      border-right-color: var(--ion-color-dark-shade);
    }
    
    .category-item {
      background: var(--ion-color-dark-tint);
    }
    
    .category-item:not(.active):hover {
      background: var(--ion-color-dark-shade);
    }
    
    .mobile-categories {
      background: var(--ion-color-dark);
    }
  }
  
  /* 滚动条优化 */
  .categories-sidebar::-webkit-scrollbar {
    width: 4px;
  }
  
  .categories-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .categories-sidebar::-webkit-scrollbar-thumb {
    background: var(--ion-color-medium);
    border-radius: 2px;
  }
  
  .categories-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--ion-color-medium-shade);
  }